//
//  UTInt+Ext.swift
//  iPhoneUTests
//
//  Created by Toj on 1/25/24.
//

import XCTest

final class UTInt_Ext: XCTestCase {

    override func setUpWithError() throws {
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }

    override func tearDownWithError() throws {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
    }

    func testExample() throws {
        print("-->UTests: start \n")
        
        testStringSize()
        
        print("-->UTests: end \n")
    }

    func testPerformanceExample() throws {
        // This is an example of a performance test case.
        self.measure {
            // Put the code you want to measure the time of here.
        }
    }
}

extension UTInt_Ext {
    
    func testStringSize() {
        var oneHeight = CGFloat.zero
        var font = 14.to_rbtMediumFont
        
        oneHeight = 2.st_stringLineHeight(font: font)
        print("-->UTests: oneHeight: \(oneHeight)")
        
        font = 12.to_systemFont
        oneHeight = 1.st_stringLineHeight(font: font)
        print("-->UTests: oneHeight: \(oneHeight)")
    }
}
